package com.wiserun.develop.contract.model;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.math.BigDecimal;
import java.util.Date;


public class Contract {
    //合同id
    private int contid;
    //合同编号
    private String contnum;
    //签订日期
    @JsonFormat(pattern ="yyyy-MM-dd",timezone = "GMT+8")
    private Date signdate;
    //发包人
    private String signuser;
    //项目名称
    private String projname;
    //规模（万平方米）
    private BigDecimal scale;
    //投资（万元）
    private BigDecimal invest;
    //设计费（万元）
    private BigDecimal designfee;
    //费率
    private BigDecimal rate;
    //平方单价（元/平方）
    private BigDecimal unitprice;
    //回款情况
    private int payment;
    //回款日期
    @JsonFormat(pattern ="yyyy-MM-dd",timezone = "GMT+8")
    private Date paymentdate;
    //余款
    private BigDecimal restpay;
    //是否删除 0 未删除 1 已删除
    private byte isdelete;

    public int getContid() {
        return contid;
    }

    public void setContid(int contid) {
        this.contid = contid;
    }

    public String getContnum() {
        return contnum;
    }

    public void setContnum(String contnum) {
        this.contnum = contnum;
    }

    public Date getSigndate() {
        return signdate;
    }

    public void setSigndate(Date signdate) {
        this.signdate = signdate;
    }

    public String getSignuser() {
        return signuser;
    }

    public void setSignuser(String signuser) {
        this.signuser = signuser;
    }

    public String getProjname() {
        return projname;
    }

    public void setProjname(String projname) {
        this.projname = projname;
    }

    public BigDecimal getScale() {
        return scale;
    }

    public void setScale(BigDecimal scale) {
        this.scale = scale;
    }

    public BigDecimal getInvest() {
        return invest;
    }

    public void setInvest(BigDecimal invest) {
        this.invest = invest;
    }

    public BigDecimal getDesignfee() {
        return designfee;
    }

    public void setDesignfee(BigDecimal designfee) {
        this.designfee = designfee;
    }

    public BigDecimal getRate() {
        return rate;
    }

    public void setRate(BigDecimal rate) {
        this.rate = rate;
    }

    public BigDecimal getUnitprice() {
        return unitprice;
    }

    public void setUnitprice(BigDecimal unitprice) {
        this.unitprice = unitprice;
    }

    public int getPayment() {
        return payment;
    }

    public void setPayment(int payment) {
        this.payment = payment;
    }

    public byte getIsdelete() {
        return isdelete;
    }

    public void setIsdelete(byte isdelete) {
        this.isdelete = isdelete;
    }

    public Date getPaymentdate() {
        return paymentdate;
    }

    public void setPaymentdate(Date paymentdate) {
        this.paymentdate = paymentdate;
    }

    public BigDecimal getRestpay() {
        return restpay;
    }

    public void setRestpay(BigDecimal restpay) {
        this.restpay = restpay;
    }

    @Override
    public String toString() {
        return "Contract{" +
                "contid=" + contid +
                ", contnum='" + contnum + '\'' +
                ", signdate=" + signdate +
                ", signuser='" + signuser + '\'' +
                ", projname='" + projname + '\'' +
                ", scale=" + scale +
                ", invest=" + invest +
                ", designfee=" + designfee +
                ", rate=" + rate +
                ", unitprice=" + unitprice +
                ", payment=" + payment +
                ", paymentdate=" + paymentdate +
                ", restpay=" + restpay +
                '}';
    }
}
